<?php
namespace app\shop\library\order;

use app\shop\library\order\Order;
abstract class OrderItem{

    protected $member_id;
    protected $post = [];
    public $save_lab = false;
    public function __construct(int $member_id,array $post){
        $this->member_id = $member_id;
        $this->post = $post;
    }
    
    //计算
    public function count(Order &$order){
        
    }

    //保存
    public function save(Order $order){

    }
    //回滚
    public function rollback(Order $order){

    }
}
